using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class TermConfiguration : Base.BaseEntityConfiguration<Term>
    {

        public override void Configure(EntityTypeBuilder<Term> builder)
        {
            base.Configure(builder);

            builder.ToTable("term");


            builder.Property(x=>x.TermName).HasColumnName("term_name").HasMaxLength(2000000).HasColumnOrder(1);
        }

    }
}